<div class="search" >
  <form method='post' id="form_do" name="form_do" action="{:U(MODULE_NAME.'/Product/singleList')}">
    <input type="text" name="keyword" class="input-m" value="{$keyword}" id="keyword" placeholder="请输入产品ID或标题">
    <select name="type" id="type">
      <option value="0" <if condition="$type eq '0'">selected</if>>全部</option>
      <option value="1" <if condition="$type eq '1'">selected</if>>附加保险</option>
      <option value="2" <if condition="$type eq '2'">selected</if>>附加产品</option>
      <option value="3" <if condition="$type eq '3'">selected</if>>包含单品</option>
      <option value="4" <if condition="$type eq '4'">selected</if>>赠送单品</option>
    </select>
    <input type="submit" class="button-green" value="查  询" >
  </form>
</div>
<div class="operate2">
  <ul>
    <li onclick="window.location='{:U(MODULE_NAME.'/Product/singleEdit')}'"><span class="icon-add01"></span>新增单品</li>
  </ul>
  <div class="clear"></div>
</div>
<table class="list">
		<thead>
  		<tr>
        <th>产品ID</th>
        <th>图片</th>
        <th>标题</th>
        <th>类型</th>
        <th>发布时间</th>
        <th>操作</th>
      </tr>
		</thead>
    <tbody>
		    <foreach name='list' item='v'>
        <tr>
           <td>{$v.id}</td>
           <td>
              <img src="{$v.uploadImg}" width="100" />
           </td>
           <td>{$v.title}</td>
           <td>{$v.typeName}</td>
           <td>{$v.createTime|date='Y-m-d H:i:s',###}</td>
           <td>
               <!-- <a href="javascript:;" target="_blank">查看</a>&nbsp;&nbsp; -->
               <a href="javascript:location.href='{:U(MODULE_NAME.'/Product/singleEdit',array('id'=>$v['id']))}'">编辑</a>&nbsp;&nbsp;
               <!-- <a href="javascript:;">删除</a>&nbsp;&nbsp; -->
           </td>
       </tr>
      </foreach>
    </tbody>
</table>
<div class="page" style="clear: both;">{$page}</div>